function LoadTable()
{
 jQuery("#bp_xml").jqGrid({
   	url:'controller/server/bp_xml.php',
	datatype: "json",
   	colNames:['Id','Дата','Заголовок','Статус','Создатель','Node','Схема',''],
   	colModel:[
               {name:'id',index:'id',width:15,search: false},
               {name:'dt',index:'id',width:40,search: false},
               {name:'title',index:'id',width:255,search: false},
               {name:'status',index:'id',width:55,search: false},               
               {name:'userid',index:'userid',width:55,search: false},               
               {name:'node',index:'node',width:55,search: false},               
               {name:'xml',index:'xml',width:55,search: false},               
               {name:'myac', width:80, fixed:true, sortable:false, resize:false, formatter:'actions',formatoptions:{keys:true},search: false}
        ],
                onSelectRow: function(ids) {
                    $("#bp_xml_step_list").load("controller/client/bp_xml_form_list_step.php?&eqid="+ids);
                    $("#bp_xml_info").load("controller/client/bp_xml_form.php?mode=edit&eqid="+ids);                    
                    //upload_me.setData({'contractid':ids});
                },
                     autowidth: true,	
                     pager: '#bp_xml_footer',
                     sortname: 'dt',
                     scroll:1,
                     shrinkToFit: true,        
                     viewrecords: true,
                     height: 200,
                     sortorder: "desc",
                     editurl:"controller/server/bp_xml.php",
                     caption:"БП Согласование по схеме"
                     }).trigger('reloadGrid');	
                     
    jQuery("#bp_xml").jqGrid('navGrid','#bp_xml_footer',{edit:false,add:false,del:false,search:false});                     
                     
    jQuery("#bp_xml").jqGrid('navButtonAdd','#bp_xml_footer',{caption:"Добавить",                              
	onClickButton:function(){
          //$("#uploadButton").css('visibility','visible');  
          $("#bp_xml_info").load("controller/client/bp_xml_form.php?mode=add");  
	} 
});                     
 };            
            
LoadTable();            